import request from "@/utils/request";

/**
 * 施工日志列表
 * @param { ConstructionLogParams } params
 * @returns { ConstructionLogData }
 */
export const constructionLog = params => {
  return request({
    url: "/crm/customerLog/listPc",
    method: "get",
    params
  });
};

/**
 * 新增日志
 * @param { addConstructionLogParams } data
 * @return {*}
 */
export const addCustomerLog = data => {
  return request({
    url: "/crm/customerLog/add",
    method: "post",
    data
  });
};

/**
 * 删除日志
 * @param { number } logId
 */
export const delCustomerLog = logId => {
  return request({
    url: `/crm/customerLog/del/${logId}`,
    method: "DELETE"
  });
};
